package com.eastcom.bm.service.impl;

import java.util.Date;
import java.util.List;

import org.apache.log4j.Logger;

import com.eastcom.bm.atom.RawData;
import com.eastcom.bm.dao.DAOFactory;
import com.eastcom.bm.dao.IRawDataDao;
import com.eastcom.bm.service.IRawDataService;
import com.eastcom.common.db.JDBCTemplate;
import com.eastcom.providor.BMSetting;


public class RawDataService implements IRawDataService {
	
	private static Logger log = BMSetting.getBMlog();

	public List<RawData> getRawDatasByDataSetId(String dataSetID,Date startDate, Date endDate) {
		// TODO Auto-generated method stub
		try{
			IRawDataDao rawDao=DAOFactory.getInstance().getRawDataDao();
			return rawDao.getRawDatasByDataSetId(dataSetID, startDate, endDate);
		}
		catch(Exception e){
			log.error("IRawDataService getRawDatasByDataSetId error",e);
		}
		finally{
			JDBCTemplate.doSessionFinally();
		}
		
		return null;
	}

}
